package com.wilmer.webConfig;

import com.wilmer.TecherLessonPlan.preHandle.LessonPlanInterceptor;
import com.wilmer.framework.web.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 针对gpt进行拦截
 *
 * @author Stephen
 */

@Configuration
public class webConfig implements WebMvcConfigurer {


    @Autowired
    private LessonPlanInterceptor lessonPlanInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(lessonPlanInterceptor).addPathPatterns("/TecherLessonPlan/TecherLessonPlan/kkk")
                .addPathPatterns("/ai/sss");
    }
}
